<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="renderer" content="webkit"/>
    <title>我的消息</title>
    <meta name="force-rendering" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="../css/shop.css">
    <link rel="stylesheet" href="../css/weui.min.css">
    <link rel="stylesheet" href="../css/jquery-weui.min.css">
    <link rel="stylesheet" href="../css/main.css">
    <link rel="stylesheet" href="../css/demos.css">
    <style>
        .weidu{}
    </style>
</head>
<body>
<div class="header">
    <a class="haader-left" href="javascript:window.history.go(-1)"><i class="iconfont icon-left"></i></a>
    <div class="haader-content">消息中心</div>
    <div class="haader-right">
    </div>
</div>
<div class="news-content">

</div>
</body>
<script src="../js/jquery-2.1.4.js"></script>
<script src="../js/jquery-weui.js"></script>
<script src="../wxJs/utils/storage.js" ></script>
<script src="../wxJs/utils/contain.js" ></script>
<script>
    $(document).on('click', '.news-tab-content', function () {
        $(this).find('.weui-badge').hide()
    })

    var shopId = GetQueryString("shopId");
     $.post(getWeiContextPath()+"/wx/shop/queryMyMsgList",{shopId:shopId},function (res) {
        var _news = $(".news-content").empty();
         $.each(res,function (i, obj) {
             var weidu;
             if (obj.status==0){
                 weidu = "weui-badge weui-badge_dot"
             }
             _news.append('<a href="news-details.html?smId='+obj.id+'" class="news-tab-content">\n' +
                 '        <div class="news-title">\n' +
                 '            '+obj.msgTitle+'\n' +
                 '        </div>\n' +
                 '        <div class="news-more">\n' +
                 '            <span>点击查看更多<span class="'+weidu+'" style="margin:0 5px 5px 5px;"></span>'+obj.createTime+'</span> <img\n' +
                 '                src="../images/youjiantou.png" alt="">\n' +
                 '        </div>\n' +
                 '    </a>')
         })
     })



</script>
</html>